package com.qf.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface AccountMapper {

    @Update("update account set money=money+#{money} where id=#{toId}")
    int inMoney(@Param("toId") Integer toId, @Param("money") Double money);

    @Update("update account set money=money-#{money} where id=#{fromId}")
    int outMoney(@Param("fromId") Integer fromId,@Param("money") Double money);
}
